package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.WarehouseOrderInfoMapper;
import com.ruoyi.system.domain.WarehouseOrderInfo;
import com.ruoyi.system.service.IWarehouseOrderInfoService;

/**
 * 仓库订单详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-19
 */
@Service
public class WarehouseOrderInfoServiceImpl implements IWarehouseOrderInfoService 
{
    @Autowired
    private WarehouseOrderInfoMapper warehouseOrderInfoMapper;

    /**
     * 查询仓库订单详情
     * 
     * @param id 仓库订单详情主键
     * @return 仓库订单详情
     */
    @Override
    public WarehouseOrderInfo selectWarehouseOrderInfoById(Long id)
    {
        return warehouseOrderInfoMapper.selectWarehouseOrderInfoById(id);
    }

    /**
     * 查询仓库订单详情列表
     * 
     * @param warehouseOrderInfo 仓库订单详情
     * @return 仓库订单详情
     */
    @Override
    public List<WarehouseOrderInfo> selectWarehouseOrderInfoList(WarehouseOrderInfo warehouseOrderInfo)
    {
        return warehouseOrderInfoMapper.selectWarehouseOrderInfoList(warehouseOrderInfo);
    }

    /**
     * 新增仓库订单详情
     * 
     * @param warehouseOrderInfo 仓库订单详情
     * @return 结果
     */
    @Override
    public int insertWarehouseOrderInfo(WarehouseOrderInfo warehouseOrderInfo)
    {
        return warehouseOrderInfoMapper.insertWarehouseOrderInfo(warehouseOrderInfo);
    }

    /**
     * 修改仓库订单详情
     * 
     * @param warehouseOrderInfo 仓库订单详情
     * @return 结果
     */
    @Override
    public int updateWarehouseOrderInfo(WarehouseOrderInfo warehouseOrderInfo)
    {
        return warehouseOrderInfoMapper.updateWarehouseOrderInfo(warehouseOrderInfo);
    }

    /**
     * 批量删除仓库订单详情
     * 
     * @param ids 需要删除的仓库订单详情主键
     * @return 结果
     */
    @Override
    public int deleteWarehouseOrderInfoByIds(Long[] ids)
    {
        return warehouseOrderInfoMapper.deleteWarehouseOrderInfoByIds(ids);
    }

    /**
     * 删除仓库订单详情信息
     * 
     * @param id 仓库订单详情主键
     * @return 结果
     */
    @Override
    public int deleteWarehouseOrderInfoById(Long id)
    {
        return warehouseOrderInfoMapper.deleteWarehouseOrderInfoById(id);
    }
}
